package jUnitTest;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import businessLogic.MemberManageBLService;
import businessLogic.MemberManage_Stub;

public class MemberManageBLServiceTest {
	
	private MemberManageBLService memberManage;

	@Before
	public void setUp() throws Exception {
		memberManage = new MemberManage_Stub();
	}

	@Test
	public void testLogin() {
		boolean result = memberManage.login(null, null);
		assertEquals(true, result);
	}

	@Test
	public void testMemberDelete() {
		boolean result = memberManage.memberDelete(0);
		assertEquals(true, result);
	}

	@Test
	public void testUpdate() {
		memberManage.update(null);
	}

	@Test
	public void testGetMemberByID() {
		assertNull(memberManage.getMemberByID(0));
	}

	@Test
	public void testGetMemberByName() {
		assertNull(memberManage.getMemberByName(null));
	}

	@Test
	public void testGetMemberByNumber() {
		assertNull(memberManage.getMemberByNumber(null));
	}

	@Test
	public void testSendDiscountCoupon() {
		memberManage.sendDiscountCoupon(0);
	}

	@Test
	public void testSendEquivalentCoupon() {
		memberManage.sendEquivalentCoupon(0);
	}

	@Test
	public void testMemberRegister() {
		boolean result = memberManage.memberRegister(null, null, null, null);
		assertEquals(true, result);
	}

}
